/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package escom.ipn.modelo.facade;

import escom.ipn.modelo.dao.coordenadaIncidenteDAO;
import escom.ipn.modelo.dto.coordenadaIncidenteClass;
import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;

/**
 *
 * @author Daniel
 */
public class coordenadaIncidenteFacade {
      private Connection cnn;
    private coordenadaIncidenteDAO dao;
    
    public coordenadaIncidenteFacade(Connection cnn){
        this.cnn = cnn;
        dao = new coordenadaIncidenteDAO();
    }
    
    public void crearCoordenadaIncidente(coordenadaIncidenteClass a)
            throws SQLException{
        dao.createCoordenadaIncidente(a, cnn);
    }
    
    public coordenadaIncidenteClass leerCoordenadaIncidente(coordenadaIncidenteClass a)
            throws SQLException{
        return dao.loadCoordenadaIncidente(a, cnn);
    }
    
    public List mostrarCoordenadas(coordenadaIncidenteClass a)
    throws SQLException
    {
        return dao.getCoordenadas(a, cnn);
    }
    
}
